"""
@author: Sergiy Tsymbalyuk
"""

import logging

from pylons.i18n import lazy_ugettext as _

from repoze.what.plugins.pylonshq import ControllerProtector
from repoze.what.predicates import has_permission

from chowa.lib.site.crud import FlatCrudController
from hrms.model.education import Stage

log = logging.getLogger(__name__)

@ControllerProtector(has_permission('hrms.administer.education'))
class StagesController(FlatCrudController):
    __model__ = Stage
    __main_heading__ = _('Education')
